package cn.wolfcode.crm.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
public class JsonResult {
    private String msg;
    private  Boolean success = true;//默认为true


    public JsonResult(){

    }

    //失败的时候使用的封装错误信息
    public void mark(String msg){
        this.success = false;
        this.msg = msg;
    }

    public JsonResult(boolean success,String msg){
        this.success = success;
        this.msg = msg;
    }

}
